package cn.iune.erp.inventory;

import java.text.ParseException;
import java.util.List;
import com.alibaba.fastjson.JSONObject;

import cn.iune.common.base.IBizDataIface;

public interface IStocktakingDetailService extends IBizDataIface {

	List<StocktakingDetail> getAll();

	StocktakingDetail getByID(String fID);

	void delete(String fID);

	JSONObject save(JSONObject object) throws ParseException ;

	List<StocktakingDetail> getByMasterID(String fMasterID);

	int confirm(String fID);

	int active(String fID);

	int confirm(StocktakingDetail srd);

	int active(StocktakingDetail srd);

	int deleteByMasterID(String fMasterID);

	int confirmByMasterID(String fMasterID);

	int activeByMasterID(String fMasterID);

	//审核通过，改变审核状态为confirm
	StocktakingDetail agreeIt(StocktakingDetail srd);

	//审核拒绝，改变审核状态为active
	StocktakingDetail unAgree(StocktakingDetail srd);

	//审核通过，改变审核状态为confirm
	StocktakingDetail agreeIt(String fID);

	//审核拒绝，改变审核状态为active
	StocktakingDetail unAgree(String fID);

	int agreeItByMasterID(String fMasterID);

	int unAgreeByMasterID(String fMasterID);

	int agreeIt(List<StocktakingDetail> srds);

	int unAgree(List<StocktakingDetail> srds);

	int open(String fID);

	int close(String fID);

	int open(StocktakingDetail srd);

	int close(StocktakingDetail srd);

	int openByMasterID(String fMasterID);

	int closeByMasterID(String fMasterID);

	void insert(StocktakingDetail obj);

	StocktakingDetail getByNo(String documentNo, String serialNo, String enterpriseNo);

	StocktakingDetail update(StocktakingDetail obj);

	StocktakingDetail packing(Stocktaking stocktaking);
















}